﻿@Html.DevExpress().ComboBox(
    settings => {
        settings.Name = "nsrmcComboBox";
        settings.Width = 360;
        settings.Properties.DropDownWidth = 360;
        settings.Properties.DropDownStyle = DropDownStyle.DropDown;
        settings.CallbackRouteValues = new { Controller = "YGZAllowance", Action = "LargeDataComboBoxPartial" };
        settings.Properties.EnableCallbackMode = true;
        settings.Properties.CallbackPageSize = 15;
        settings.Properties.IncrementalFilteringMode = IncrementalFilteringMode.Contains;
        settings.Properties.TextField = "NSRMC";
        settings.Properties.TextFormatString = "{0}";
        settings.Properties.ValueField = "NSRBM";
        settings.Properties.ValueType = typeof(string);
        settings.Properties.FilterMinLength = 2;

        settings.Properties.Columns.Add("NSRMC", "纳税人名称", System.Web.UI.WebControls.Unit.Percentage(100));

        settings.Properties.ClientSideEvents.BeginCallback = "OnStartCallback";
        settings.Properties.ClientSideEvents.EndCallback = "OnEndCallback";
        settings.Properties.ClientSideEvents.ValueChanged = "nsrmcChange";
    }
).BindList(EnterpriseFund.Controllers.YGZAllowanceController.GetNsrRange, EnterpriseFund.Controllers.YGZAllowanceController.GetNsrByID).GetHtml()